import request from '@/utils/request'

export function getAll() {

    return request({
      url: `/check-freight/getAll`,
      method: 'get',
    })
}

export function upsert(data) {

    return request({
      url: `/check-freight/upsert`,
      method: 'post',
      data,
    })
}

export function deleteList(data) {

    return request({
      url: `/check-freight/deleteById?id=` + data.id,
      method: 'delete',
    })
}
export function check(data) {

    return request({
      url: `/check-freight/check?cfID=` + data.cfid,
      method: 'post',
    })
}